<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="keywords" content="中国护肤网站,后天丽质,护肤,护肤品牌推荐,护肤方法推荐,正确护肤,男士护肤，婴幼儿护肤">
    <meta name="description" content="护肤,护肤品牌推荐,护肤方法推荐,正确护肤,男士护肤,婴幼儿护肤">
    <title>后天丽质，专门的护肤网站-登录</title>
    <!-- CSS-->
    <link rel="stylesheet" href="../source/css/normalize.css">
    <link rel="stylesheet" href="../source/css/public.css">
    <link rel="stylesheet" href="../source/css/login.css">
    <!-- JS -->
    <script src="../source/icon-font/iconfont.js"></script>
    <script src="../source/js/animate.js"></script>
    <script src="../source/js/jQuery.min.js"></script>
    <script src="../source/js/jquery.cookie.js"></script>
</head>

<body>
    <div class="layui-container">
        <div class="admin-login-background">
            <div class="layui-form login-form">
                <form class="layui-form" action="">
                    <div class="layui-form-item logo-title">
                        <img src="../source/pic/public/header0.png" alt="" style="width: 210px;">
                    </div>

                    <div class="layui-form-item">
                        <span style="margin: 0 auto; width: 70px; display: inline-block;">用户名</span>
                        <input id="username" type="text" name="username" lay-verify="required|account"
                            placeholder="用户名或者邮箱" autocomplete="off" class="layui-input" value="">
                    </div>
                    <div class="layui-form-item">
                        <span style="margin: 0 auto; width: 70px;display: inline-block;">密码</span>
                        <input id="password" type="password" name="password" lay-verify="required|password"
                            placeholder="密码" autocomplete="off" class="layui-input" value="">
                    </div>
                    <div class="layui-form-item">
                        <button class="btn layui-btn layui-btn-normal layui-btn-fluid" lay-submit=""
                            lay-filter="login"><a href="../index.html"
                                style="cursor:unset; color: black;">登录</a></button>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script>
        var username = document.querySelector('#username');
        var password = document.querySelector('#password');
        var button = document.querySelector('.btn');
        button.addEventListener('click', function () {
            $.cookie('name', username.value, {
                path: '/'
            });
            name = $.cookie('name');
            alert(name + ' 你好！');
        })

        function Go() {
            window.location.href = "../index.html";
        }
    </script>
</body>

</html>